//
//  EditController.h
//  ContactViewerIos
//
//  Created by Mitchell Sans Souci on 3/24/12.
//  Copyright (c) 2012 Tiny Mission. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Contact.h"
#import "ContactList.h"

@class MasterViewController;

typedef enum
{
    CREATE = 0,
    EDIT
} Action_t;

@interface ContactActionViewController : UIViewController 

@property (strong, nonatomic) Contact* contact;
@property (strong, nonatomic) ContactList* contacts;
@property (nonatomic) Action_t action;

@property (strong, nonatomic) IBOutlet UITextField *nameField;
@property (strong, nonatomic) IBOutlet UITextField *titleField;
@property (strong, nonatomic) IBOutlet UITextField *phoneField;
@property (strong, nonatomic) IBOutlet UITextField *emailField;
@property (strong, nonatomic) IBOutlet UITextField *twitterIdField;

-(IBAction)onSaveContact:(id)sender;
-(NSString*) retrieveTextFieldText:(UITextField*) textField;
@end
